home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak Vol A-4
/
(Vol A-4) Vol. A4.iso
/
Games
/
loa_and_the_island.swf
/
scripts
/
DefineSprite_772
/
frame_8
/
PlaceObject2_666_318
/
CLIPACTIONRECORD onClipEvent(enterFrame).as
next >
Wrap
Text File
|
2008-03-17
|
722b
|
26 lines
onClipEvent(enterFrame){
if(_root.paused == false)
{
play();
if(destroy == false and _currentframe > 8)
{
gotoAndStop(1);
}
if(destroy == false and (this.hitTest(_root.level.sprite._x + _root.level._x,_root.level.sprite._y + _root.level._y - 10,true) or this.hitTest(_root.level.sprite._x + _root.level._x,_root.level.sprite._y + _root.level._y - 50,true)))
{
_global.health += _global.maxhealth / 10;
destroy = true;
gotoAndStop(10);
}
if(_currentframe == _totalframes)
{
this.swapDepths(0);
removeMovieClip(this);
}
}
if(_root.paused == true)
{
stop();
}
}